package collection.list;

//需求：编写一个ListCopy类，类具有和ArrayList相似的功能
public class Demo01MyList {
    public static void main(String[] args) {
        MyList myList = new MyList(20);
        myList.add("abcdefg");
        myList.add("123456789");
        myList.add("what fuck your mother");
        myList.show();

        boolean flag = myList.remove(2);
        System.out.println(flag);
        myList.show();

        boolean flag2 = myList.contain("123456789");
        System.out.println(flag2);

        System.out.println(myList.size());

        System.out.println(myList.get(1));

    }
}
